File: Autopilot.h

    1   /*
    2    * File: Autopilot.h
    3    *
    4    * Code generated for Simulink model 'Autopilot'.
    5    *
    6    * Model version                  : 1.152
    7    * Simulink Coder version         : 8.5 (R2013b) 08-Aug-2013
    8    * C/C++ source code generated on : Mon Feb 03 08:13:57 2014
    9    *
   10    * Target selection: ert.tlc
   11    * Embedded hardware selection: 32-bit Embedded Processor
   12    * Code generation objectives: Unspecified
   13    * Validation result: Not run
   14    */
   15   
   16   #ifndef RTW_HEADER_Autopilot_h_
   17   #define RTW_HEADER_Autopilot_h_
   18   #ifndef Autopilot_COMMON_INCLUDES_
   19   # define Autopilot_COMMON_INCLUDES_
   20   #include <string.h>
   21   #include "rtwtypes.h"
   22   #include "model_reference_types.h"
   23   #endif                                 /* Autopilot_COMMON_INCLUDES_ */
   24   
   25   #include "Autopilot_types.h"
   26   
   27   /* Child system includes */
   28   #include "yaw_damper.h"
   29   #include "roll_ap.h"
   30   #include "pitch_ap.h"
   31   
   32   /* Macros for accessing real-time model data structure */
   33   
   34   /* Block states (auto storage) for system '<Root>' */
   35   typedef struct {
   36     rtMdlrefDWork_roll_ap Roll_Autopilot_DWORK1;/* '<Root>/Roll_Autopilot' (DWork 1)  */
   37     rtMdlrefDWork_pitch_ap Pitch_Autopilot_DWORK1;/* '<Root>/Pitch_Autopilot' (DWork 1)  */
   38     rtMdlrefDWork_yaw_damper Yaw_Damper_DWORK1;/* '<Root>/Yaw_Damper' (DWork 1)  */
   39   } D_Work_Autopilot;
   40   
   41   /* External inputs (root inport signals with auto storage) */
   42   typedef struct {
   43     slBus1 AirData;                      /* '<Root>/Air Data' */
   44     slBus2 Inertial;                     /* '<Root>/Inertial' */
   45     boolean_T APeng;                     /* '<Root>/AP Eng' */
   46     boolean_T HDGmode;                   /* '<Root>/HDG Mode' */
   47     boolean_T ALTMode;                   /* '<Root>/ALT Mode' */
   48     real_T HDGref;                       /* '<Root>/HDG Ref' */
   49     real_T TurnKnob;                     /* '<Root>/Turn Knob' */
   50     real_T ALTRef;                       /* '<Root>/ALT Ref' */
   51     real_T PitchWheel;                   /* '<Root>/Pitch Wheel' */
   52   } ExternalInputs_Autopilot;
   53   
   54   /* External outputs (root outports fed by signals with auto storage) */
   55   typedef struct {
   56     real_T AileronCmd;                   /* '<Root>/Aileron Cmd' */
   57     real_T ElevatorCmd;                  /* '<Root>/Elevator Cmd' */
   58     real_T RudderCmd;                    /* '<Root>/Rudder Cmd' */
   59   } ExternalOutputs_Autopilot;
   60   
   61   /* Block states (auto storage) */
   62   extern D_Work_Autopilot Autopilot_DWork;
   63   
   64   /* External inputs (root inport signals with auto storage) */
   65   extern ExternalInputs_Autopilot Autopilot_U;
   66   
   67   /* External outputs (root outports fed by signals with auto storage) */
   68   extern ExternalOutputs_Autopilot Autopilot_Y;
   69   
   70   /* External data declarations for dependent source files */
   71   extern const slBus1 Autopilot_rtZslBus1;/* slBus1 ground */
   72   extern const slBus2 Autopilot_rtZslBus2;/* slBus2 ground */
   73   
   74   /* Model entry point functions */
   75   extern void Autopilot_initialize(void);
   76   extern void Autopilot_step(void);
   77   
   78   /*-
   79    * The generated code includes comments that allow you to trace directly
   80    * back to the appropriate location in the model.  The basic format
   81    * is <system>/block_name, where system is the system number (uniquely
   82    * assigned by Simulink) and block_name is the name of the block.
   83    *
   84    * Use the MATLAB hilite_system command to trace the generated code back
   85    * to the model.  For example,
   86    *
   87    * hilite_system('<S3>')    - opens system 3
   88    * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
   89    *
   90    * Here is the system hierarchy for this model
   91    *
   92    * '<Root>' : 'Autopilot'
   93    * '<S1>'   : 'Autopilot/Model Info'
   94    */
   95   
   96   /*-
   97    * Requirements for '<Root>': Autopilot
   98    */
   99   #endif                                 /* RTW_HEADER_Autopilot_h_ */
  100   
  101   /*
  102    * File trailer for generated code.
  103    *
  104    * [EOF]
  105    */
  106